@extends('web.layouts.app')

@section('title', trans('seo.other_title').$article->title)
@section('keywords', trans('seo.default_articles.keywords'))
@section('description', trans('seo.default_articles.description'))

@section('styles')
<link rel="stylesheet" type="text/css" href="{{ asset('resources/web/css/article.css')}}">
@endsection

@section('content')
    <div class="article-wrap clearfix">
        <!--bread nav-->
        <div class="bread-nav">
            <a href="{{ action("ArticleController@index") }}">首页</a><i>&gt;</i><a href="{{ action("ArticleController@notice") }}">平台公告</a><i>&gt;</i><span>{{ $article_category_name }}</span><i>&gt;</i><span>{{ str_limit($article->title,50)}}</span>
        </div>
        <!--bread nav /-->
        <!--article container-->
        <div class="article-container">
            <!--menu-->
            <div class="article-side">
                <ul>
                    @foreach($article_categories as $article_category)
                        <li {{ $article_category->name==$article_category_name?"class=active":"" }}><a href="{{ action("ArticleController@notice",[$article_category->id])}}">{{ $article_category->name }}</a></li>
                    @endforeach
                </ul>
            </div>
            <!--menu /-->
            <div class="article-main help-center-content">
                <div class="help-center-title">{{ str_limit($article->title,50) }}</div>
                <div class="help-center-info" id="article-content">
                    {!! $article->content !!}
                    </div>
            </div>
        </div>
        <!--article container /-->
    </div>
@endsection

@section('scripts')
<script src="{{ asset('resources/admin/plugins/ueditor/ueditor.parse.min.js')}}"></script>
<script>
    $(function(){
        uParse('#article-content');
    })
</script>
@endsection

